package factory.fromKanYun.abstractFactory;

import factory.fromKanYun.Sender;

public class Test {
    public static void main(String[] args) {
        AbstractFactory factory = new EmailSendFactory();
        Sender sender = factory.produce();
        sender.send();

        factory = new SmsSendFactory();
        sender = factory.produce();
        sender.send();
    }
}
